<?php
	$pagef = isset($_GET['page']) ? $_GET['page'] : 'pocetna';
	$pagef = "pages/$pagef.php";
	$pagef = file_exists($pagef) ? $pagef : '404.php';
	include('config.php');
	include('header.php');
	include($pagef);
	include('footer.php');
?>